From 89f32128f37d99b490de7590e2116a9cfd853f89 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Fri, 22 Dec 2023 17:33:46 +0700
Subject: Update promotion program feature

---
 src-migrate/pages/api/product-variant/[id].tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src-migrate/pages/api/product-variant/[id].tsx')

diff --git a/src-migrate/pages/api/product-variant/[id].tsx b/src-migrate/pages/api/product-variant/[id].tsx
index ec95714d..b3bd4096 100644
--- a/src-migrate/pages/api/product-variant/[id].tsx
+++ b/src-migrate/pages/api/product-variant/[id].tsx
@@ -20,13 +20,13 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
       return
     }
 
-    const variant = await extractVariant(data.response.docs[0], price_tier)
+    const variant = await map(data.response.docs[0], price_tier)
 
     res.status(200).json({ data: variant })
   }
 }
 
-const extractVariant = async (variant: any, price_tier: string) => {
+const map = async (variant: any, price_tier: string) => {
   const data: any = {}
 
   data.id = parseInt(variant.id)
-- 
cgit v1.2.3

